Package-level declarations

Properties

Link copied to clipboard

Returns the handler of the given item stack, if available. This item stack is not the staff item stack, but the one can be inserted into the staff.

Link copied to clipboard

Returns the handler of the given item stack, if available, a dummy one if not, and the empty staff handler if the item stack is null. This item stack is not the staff item stack, but the one can be inserted into the staff.

Link copied to clipboard
@get:JvmName(name = "hasHandlerOfStaff")
val ItemStack.hasHandlerOfItem: Boolean

Returns if the given staff item stack has a registered handler. This item stack is not the staff item stack, but the one can be inserted into the staff.

Link copied to clipboard
@get:JvmName(name = "isItemInStaff")
val ItemStack.isItemInStaff: Boolean

Checks if an item is added the given staff item stack.

Link copied to clipboard

Gets or sets the item added to the given staff item stack.

Link copied to clipboard

Gets the missing sprite from the block atlas.

Link copied to clipboard
const val MOD_ID: String

The identifier of Staff Mod.

Link copied to clipboard

The transform of an item in the default position of the staff.

Functions

Link copied to clipboard

Creates an EntityAttributeModifier, which changes the attack damage to totalAttackDamage after subtracting the player's base attack damage.

Link copied to clipboard

Creates an EntityAttributeModifier, which changes the attack speed to totalAttackSpeed after subtracting the player's base attack speed.

Link copied to clipboard
inline operator fun <L, R> Either<L, R>.component1(): Optional<L>
inline operator fun <F, S> Pair<F, S>.component1(): F
inline operator fun Vec3d.component1(): Double
inline operator fun Vector3f.component1(): Float
Link copied to clipboard
inline operator fun <L, R> Either<L, R>.component2(): Optional<R>
inline operator fun <F, S> Pair<F, S>.component2(): S
inline operator fun Vec3d.component2(): Double
inline operator fun Vector3f.component2(): Float
Link copied to clipboard
inline operator fun Vec3d.component3(): Double
inline operator fun Vector3f.component3(): Float
Link copied to clipboard

Creates an EntityAttributeModifier, which changes the attack speed to the reciprocal of totalEquipTime after subtracting the player's base attack speed.

Link copied to clipboard
fun ModelPart.getBakedQuads(sprite: Sprite, transformation: Transformation = Transformation.IDENTITY, luminance: Int = 0): MutableList<BakedQuad>
fun ModelPart.getBakedQuads(bakedQuadConsumer: Consumer<BakedQuad>, sprite: Sprite, transformation: Transformation = Transformation.IDENTITY, luminance: Int = 0)

Renders the model to BakedQuads.

Link copied to clipboard

Creates a transformed model based on the model of the block state.

Link copied to clipboard
inline operator fun Vec3d.minus(other: Vec3d): Vec3d
Link copied to clipboard
inline operator fun Vector3f.minusAssign(other: Vector3fc)
Link copied to clipboard
inline operator fun Vec3d.plus(other: Vec3d): Vec3d
Link copied to clipboard
inline operator fun Vector3f.plusAssign(other: Vector3fc)
Link copied to clipboard
inline operator fun Vec3d.times(scalar: Double): Vec3d
Link copied to clipboard
inline operator fun Vector3f.timesAssign(scalar: Float)
Link copied to clipboard
fun BakedModel.transform(blockState: BlockState?, transformation: Transformation): BakedModel

Creates a new transformed model.

Link copied to clipboard
inline operator fun Vec3d.unaryMinus(): Vec3d